package com.hjqjl.whdemo.feature.feature0.ui.activity.custom;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.Toast;

import com.hjqjl.whdemo.base.BaseActivity;
import com.hjqjl.whdemo.databinding.ActivityPaypwdkeyboardBinding;
import com.hjqjl.whdemo.utils.CustomKeyBoardUtil;

public class PayPwdKeyboardActivity extends BaseActivity {
    private ActivityPaypwdkeyboardBinding binding;

    public static void actionStart(Context context) {
        Intent intent = new Intent(context, PayPwdKeyboardActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected void initData() {
        binding = ActivityPaypwdkeyboardBinding.inflate(getLayoutInflater());
        View view = binding.getRoot();
        setContentView(view);
    }

    @Override
    protected void processLogic() {
        CustomKeyBoardUtil customKeyBoardUtil = new CustomKeyBoardUtil(this, binding.llPaypwdkeyboardInputpwd, binding.customKeyboardViewPaypwdkeyboard, new CustomKeyBoardUtil.InputFinishListener() {
            @Override
            public void inputHasOver(String text) {
                Toast.makeText(PayPwdKeyboardActivity.this, "输入完成:" + text, Toast.LENGTH_SHORT).show();
            }
        });
    }
}